package com.example.contract.service;

import com.google.gson.annotations.SerializedName;

import java.util.List;


public class RootObject {
    @SerializedName("Objects")
    private List<ObjectItem> objects;

    public List<ObjectItem> getObjects() {
        return objects;
    }

    public void setObjects(List<ObjectItem> objects) {
        this.objects = objects;
    }

    public static class ObjectItem {
        @SerializedName("Hash")
        private String hash;

        @SerializedName("Links")
        private List<Link> links;

        public String getHash() {
            return hash;
        }

        public void setHash(String hash) {
            this.hash = hash;
        }

        public List<Link> getLinks() {
            return links;
        }

        public void setLinks(List<Link> links) {
            this.links = links;
        }
    }

    public static class Link {
        @SerializedName("Name")
        private String name;

        @SerializedName("Hash")
        private String hash;

        @SerializedName("Size")
        private long size;

        @SerializedName("Type")
        private int type;

        @SerializedName("Target")
        private String target;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getHash() {
            return hash;
        }

        public void setHash(String hash) {
            this.hash = hash;
        }

        public long getSize() {
            return size;
        }

        public void setSize(long size) {
            this.size = size;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getTarget() {
            return target;
        }

        public void setTarget(String target) {
            this.target = target;
        }
    }
}
